//导入
import upload from "../../utils/upload";
import request from "../../utils/request";

//上传文件



export function uploadApi(filePath) {
    return upload({
      url: '/wx/app/upload',
      filePath: filePath,
      name: 'file'
    })
  }

//获取小程序码
export function getMiniCodeApi(data) {
    return request({
        url: '/wx/app/share/generate',
        method: 'get',
        params: data
    })
}